package com.example.miniappssm.mapper;

import com.example.miniappssm.bean.Cart;
import com.example.miniappssm.bean.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CartMapper {

    List<Goods> selectAllGoodsFromUserIdInCart(@Param("userId") Integer userId);

    void insertGoodsInCart(Cart cart);

    void deleteGoodsFromCartByCartId(@Param("cartId") Integer cartId);

    Cart checkIsSameInOneUserId(Cart cart);
}
